import pandas as pd
import numpy as np
import  sklearn.cluster as skc
from sklearn import metrics

# data = pd.read_csv('train.csv')
# data.loc[data['Sex']=='male','Sex']=0
# data.loc[data['Sex']=='female','Sex']=1
#
# gender = np.array(data['Sex'])
#
# db = skc.DBSCAN(eps=0.1,min_samples=5).fit(gender.reshape(-1,1))
# label = db.labels_

l